﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Media;
namespace The_Wumpers
{
	class GameObject
	{
		int newCaveNumber;
	   public Player player1;
        Cave cave1;
       public  Map Map1;
		public GameObject()
		{		
        //Play music
            SoundPlayer Sound = new SoundPlayer("chiptuneeee.wav");
            Sound.PlayLooping();

		//NEW Player Is Made
			this.player1 = new Player(0, 1, 0);
			this.player1.printPlayerStats();//Testing the new player
        //Cave is read in
            cave1 = new Cave();
            Room[] tempRooms = cave1.RoomArray;
        //Room array is sent to map
             Map1 = new Map(tempRooms);
		//Map is generated

		}

		public void EnteredRoom(int doorNumber)
		{
			newCaveNumber = doorNumber;
		}
	}
}
